package com.alibaba.algo.domain.app;

import com.alibaba.algo.cooperation.usercomponent.vo.res.app.AppAccountResponseVO;
import com.alibaba.algo.core.base.BaseDomain;
import com.alibaba.algo.dao.app.AppAccountMapper;
import com.alibaba.algo.entity.app.AppFunction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 类AppFunction.java的实现描述：应用和功能关联Domain
 *
 * @author nieganggang 2021-03-12 16:08:17
 */
@Component
public class AppFunctionDomain extends BaseDomain<AppFunction> {

    @Autowired
    private AppAccountMapper appAccountMapper;

    /**
     * 查询应用下的账号列表
     *
     * @param appId 应用标识
     * @return 账号列表
     */
    public List<AppAccountResponseVO> selectList(Long appId) {
        return appAccountMapper.selectList(appId);
    }
}
